<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./lib/layui-v.2.8/css/layui.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="./css/artAdd.css">
    <script src="./lib/layui-v.2.8/layui.js" charset="utf-8"></script>
    <script src="./lib/axios.min.js"></script>
    <script src="./js/jquery.min.js"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
</head>

<body>
    <div class="x-nav">
        <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a>
                <cite>导航元素</cite></a>
        </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
            onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
    </div>
    <div class="layui-fluid">
        <div class="layui-card" style="padding: 16px;">
            <div class="layui-row layui-col-space15">
                <form class="layui-form formIfm" id="addForm" action="">
                    <!-- 导航栏模块 -->
                    <div class="layui-tab layui-tab-brief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">基础信息</li>
                            <li>SEO信息</li>
                            <li>文章内容</li>
                        </ul>
                        <div class="layui-tab-content">
                            <!-- 基础信息模块 -->
                            <div class="layui-tab-item layui-show">

                                <!-- 基础信息表单 -->
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><strong>*</strong>标题</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="title" lay-verify="required" placeholder="请输入标题"
                                            autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-col-md5">
                                        <label class="layui-form-label"><strong>*</strong>作者</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="author" lay-verify="required" placeholder="请输入标题"
                                                autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-col-md3">
                                        <div class="cate">
                                            <label class="layui-form-label"><strong>*</strong>分类</label>
                                            <div class="layui-input-block">
                                                <select id="zx_select" name="cateid">
                                                    <option value="">请选择</option>
                                                </select>
                                            </div>

                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label"><strong>*</strong>阅读次数</label>
                                        <div class="layui-input-block zx_read">
                                            <span class="sub">
                                                <i class=" layui-icon layui-icon-subtraction"></i>
                                            </span>
                                            <input type="text" class="layui-input zx_click" name="click" value="1"
                                                style="height: 40px;">
                                            <span class="add">
                                                <i class=" layui-icon layui-icon-addition"></i>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="layui-inline zx_time">
                                        <label class="layui-form-label"><strong>*</strong>创建时间</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="create_date" autocomplete="off" class="layui-input"
                                                id="ID-laydate-demo" placeholder="选择时间日期">
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label"><strong>*</strong>是否推荐</label>
                                        <div class="layui-input-inline" style="margin-top: 8px; margin-right: 25px;">
                                            <input type="checkbox" name="ishot" title="是|否 " lay-skin="switch">
                                        </div>
                                    </div>
                                    <div class="layui-inline" style="left: 340px;">
                                        <label class="layui-form-label"><strong>*</strong>是否置顶</label>
                                        <div class="layui-input-inline" style="margin-top: 8px;">
                                            <input type="checkbox" name="istop" title="是|否 " lay-skin="switch">
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-col-md5">
                                        <label class="layui-form-label"><strong>*</strong>收藏数量</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="lovenum" lay-verify="required"
                                                placeholder="请输入收藏数量名称" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label"><strong>*</strong>文章缩略图</label>
                                    <div class="layui-input-block cropper-container">
                                        <!-- 文件选择框 -->
                                        <input class="layui-hide" type="file" id="fileCover_add"
                                            accept="image/jpeg,image/png,image/gif,image/bmp" />
                                        <div class="container">
                                            <img id="zx_addImgSrc">
                                        </div>
                                        <div class="right-box">
                                            <div class="preview"></div>
                                            <button type="button" class="layui-btn layui-btn-danger"
                                                id="btnChooseCoverImage">选择封面</button>
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item" style="margin-top: 20px;">
                                    <label class="layui-form-label"><strong>*</strong>文章标签</label>
                                    <div class="layui-input-block zx_tags">
                                        <input type="checkbox" name="tags" title="搞笑">
                                    </div>
                                </div>

                            </div>

                            <!-- SEO信息模块 -->
                            <div class="layui-tab-item">

                                <div class="layui-form-item layui-form-text">
                                    <label class="layui-form-label"><strong>*</strong>seo关键字</label>
                                    <div class="layui-input-block">
                                        <textarea placeholder="请输入seo关键字的名称" lay-verify="required" name="keywords"
                                            class="layui-textarea"></textarea>
                                    </div>
                                </div>

                                <div class="layui-form-item layui-form-text">
                                    <label class="layui-form-label"><strong>*</strong>seo的描述</label>
                                    <div class="layui-input-block">
                                        <textarea placeholder="请输入seo的描述名称" lay-verify="required" name="description"
                                            class="layui-textarea"></textarea>
                                    </div>
                                </div>

                            </div>

                            <div class="layui-tab-item">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><strong>*</strong>文章内容</label>
                                    <div id="contentBox" name="content" class="layui-input-block"
                                        style="height: 400px;"></div>
                                </div>
                            </div>

                            <div class="layui-form-item" style="margin:30px 0 0 510px;">
                                <div class="layui-input-block">
                                    <button class="layui-btn submit" type="submit" lay-submit lay-filter="formDemo"><i
                                            class="layui-icon layui-icon-addition"></i>立即发布</button>
                                    <button class="layui-btn layui-btn-normal submit" type="submit" lay-submit
                                        lay-filter="saveDemo"><i class="layui-icon layui-icon-export"></i>保存草稿</button>
                                    <button type="button" id="zx_back" class="layui-btn layui-btn-warm"><i
                                            class="layui-icon layui-icon-return"></i>返回列表</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    </div>
    </div>
    <script src="./js/common.js"></script>
    <script src="./lib/wangEditor.js"></script>
    <script src="./js/artAdd.js"></script>
</body>

</html>